﻿using System;
namespace SF.Model
{
	/// <summary>
	/// 订单信息
	/// </summary>
	[Serializable]
	public partial class sf_goods_order
	{
		public sf_goods_order()
		{}

        public sf_goods_order(string order)
        {
            userNum = "";
            orderNum = "OR" + DateTime.Now.ToString("yyyyMMddHHmmssfff");
            totalMoney = 0;
            isPay = 1;
            isComDone = 0;
            addTime = DateTime.Now;
            addressNum = "";
            payWay = 1;
            expressName = "";
            expressNum = "";
        }
		#region Model
		private long _id;
		private string _busniesenum;
		private string _appnum;
		private string _templatesnum;
		private string _ordernum;
		private string _usernum;
		private decimal? _totalmoney;
		private int? _ispay;
		private int? _isuserdone=0;
		private int? _iscomdone;
		private DateTime? _addtime= DateTime.Now;
		private DateTime? _paytime;
		private string _addressnum;
		private string _addresstext;
		private int? _payway=1;
        private int? _isexpress;
        private string _expressname;
        private string _expressnum;
        private DateTime? _expresstime;
        private DateTime? _comdonetime;
		/// <summary>
		/// 自增Id
		/// </summary>
		public long id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 商户编号
		/// </summary>
		public string busnieseNum
		{
			set{ _busniesenum=value;}
			get{return _busniesenum;}
		}
		/// <summary>
		/// 公众号编号
		/// </summary>
		public string appNum
		{
			set{ _appnum=value;}
			get{return _appnum;}
		}
		/// <summary>
		/// 前台模版编号
		/// </summary>
		public string templatesNum
		{
			set{ _templatesnum=value;}
			get{return _templatesnum;}
		}
		/// <summary>
		/// 订单编号
		/// </summary>
		public string orderNum
		{
			set{ _ordernum=value;}
			get{return _ordernum;}
		}
		/// <summary>
		/// 客户编号
		/// </summary>
		public string userNum
		{
			set{ _usernum=value;}
			get{return _usernum;}
		}
		/// <summary>
		/// 小计
		/// </summary>
		public decimal? totalMoney
		{
			set{ _totalmoney=value;}
			get{return _totalmoney;}
		}
		/// <summary>
		/// 支付状态
		/// </summary>
		public int? isPay
		{
			set{ _ispay=value;}
			get{return _ispay;}
		}
		/// <summary>
		/// 用户结算(1已结算 0 未结算)
		/// </summary>
		public int? isUserDone
		{
			set{ _isuserdone=value;}
			get{return _isuserdone;}
		}
		/// <summary>
		/// 公司财务结算（0-未结算，1-已结算）
		/// </summary>
		public int? isComDone
		{
			set{ _iscomdone=value;}
			get{return _iscomdone;}
		}
		/// <summary>
		/// 添加时间
		/// </summary>
		public DateTime? addTime
		{
			set{ _addtime=value;}
			get{return _addtime;}
		}
		/// <summary>
		/// 支付时间
		/// </summary>
		public DateTime? payTime
		{
			set{ _paytime=value;}
			get{return _paytime;}
		}
		/// <summary>
		/// 地址编号
		/// </summary>
		public string addressNum
		{
			set{ _addressnum=value;}
			get{return _addressnum;}
		}
		/// <summary>
		/// 地址信息（固态地址，针对地址编号无数据）
		/// </summary>
		public string addressText
		{
			set{ _addresstext=value;}
			get{return _addresstext;}
		}
		/// <summary>
		/// 支付方式（1-微支付）
		/// </summary>
		public int? payWay
		{
			set{ _payway=value;}
			get{return _payway;}
		}
		/// <summary>
		/// 物流状态
		/// </summary>
		public int? isExpress
		{
			set{ _isexpress=value;}
			get{return _isexpress;}
		}

        /// <summary>
        /// 快递名称
        /// </summary>
        public string expressName
        {
            set { _expressname = value; }
            get { return _expressname; }
        }
        /// <summary>
        /// 物流单号
        /// </summary>
        public string expressNum
        {
            set { _expressnum = value; }
            get { return _expressnum; }
        }
        /// <summary>
        /// 最后发货时间
        /// </summary>
        public DateTime? expressTime
        {
            set { _expresstime = value; }
            get { return _expresstime; }
        }
        /// <summary>
        /// 结算时间
        /// </summary>
        public DateTime? comDoneTime
        {
            set { _comdonetime = value; }
            get { return _comdonetime; }
        }

		#endregion Model

	}
}

